module.exports = {
  // 获取数据
  getStorageSync: key => {
    return JSON.parse(localStorage.getItem(key || ""));
  },
  // 存入数据
  setStorageSync: (value, data) => {
    localStorage.setItem(value, JSON.stringify(data));
  },
  //   删除数据
  removeStorageSync: key => {
    return localStorage.removeItem(key || "");
  }
};
